#include "ControlePrincipal.h"

ControlePrincipal::ControlePrincipal(){
	ControlePrincipal::init();
}

ControlePrincipal::~ControlePrincipal(){

}

void ControlePrincipal::init(){
	_width = 800;
	_height = 600;
	
	_done = false;

	_controlePintor = new ControlePintor::ControlePintor();
	_controlePintor->initSDL(_width, _height);
	_controlePintor->initGL();

	_controleMesh = new ControleMesh::ControleMesh();

}

void ControlePrincipal::start(){
	while(!_done){
		_controlePintor->atualiza();
	}
}